# auto_publish/serializers.py
from rest_framework import serializers
from .models import VideoPublishTask

class VideoPublishTaskSerializer(serializers.ModelSerializer):
    class Meta:
        model = VideoPublishTask
        fields = ['id', 'video_url', 'title', 'description', 'tags', 'status', 'created_at']
        read_only_fields = ['status', 'created_at']
